package org.example.projecttwo.entity.dto.content.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "收藏搜索DTO，用于分页查询用户收藏")
public class CollectionSearchDTO {

    @NotNull(message = "用户ID不能为空")
    @Schema(description = "用户ID", example = "1001")
    private Long userId;

    @Schema(description = "内容类型：1-文章，2-新闻（可选，为空则查询全部类型）", example = "1")
    private Integer contentType;

    @Schema(description = "搜索关键词（可选，用于搜索内容标题）", example = "科技")
    private String keyword;

    @Schema(description = "当前页码，默认1", defaultValue = "1", example = "1")
    private Long current = 1L;

    @Schema(description = "每页条数，默认10", defaultValue = "10", example = "10")
    private Long size = 10L;
}